


.pane-chat {
    top: 0;
    height: 100%;
    width: 30%;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
    left:30%;
    width:70%;
    border-left: 1px solid rgba(0, 0, 0, .08);
    border-right: 1px solid rgba(0, 0, 0, .08);

    .pane-header {
        background-color: rgb(243,243,243);
        -webkit-box-flex: 0;
        -webkit-flex: none;
        -ms-flex: none;
        flex: none;
        width: 100%;
        height: 64px;
        position: relative;
        padding: 10px;
        padding-left: 24px;
        padding-right: 15px;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        // border-left: 1px solid rgba(0, 0, 0, .08);
        // border-right: 1px solid rgba(0, 0, 0, .08);

        &:after {
            position: absolute;
            content: '';
            width: 100%;
            height: 1px;
            left: 0;
            bottom: -1px;
            background-color: rgba(255, 255, 255, .14);
            border-bottom: 1px solid rgba(0, 0, 0, .08);
        }


        .name {
            line-height: 89px;
            font-size: 24px;
            font-weight: bold;
        }

        .info-button {
            background: url("../images/group.png") no-repeat;
            background-size: 24px;
            width:24px;
            height:24px;
        }

        .info-button:active {
            background: url("../images/group_active.png") no-repeat;
            background-size: 24px;
        }
    }

    .chat-area {
        display: flex;
        flex-direction: column;
        flex-grow:1;
        position: relative;
        .drop-area {
            display: none;
            position: absolute;
            top:0px;
            width: 100%;
            height: 100%;

            justify-content: center;
            align-items: center;
            background-color: rgba(255,255,255, 0.8);

        }
        .drop-area.in-drag {
            display: flex;
            outline: 2px dashed #92b0b3;
            outline-offset: -10px;
        }
    }
    // 群组成员列表
    .info {
        background-color: rgb(251, 251, 251);
        position:absolute;
        width:160px;
        top:0px;
        bottom:0px;
        right:-200px;
        overflow-y: scroll;

        .member {
            display:flex;
            flex-direction: row;
            align-items: center;

            .avatar {
                width:24px;
                height:24px;
                border-radius: 4px;
                margin-left:12px;
                margin-right: 16px;
            }
        }
    }

    .info.show {
        animation: slider-left 0.6s;
        right:0px;
    }
    .info.disappear {
        animation: slider-right 0.6s;
        right:-200px;
    }

}
@keyframes slider-right {
    0% {
        right:0px;
    }

    100% {
        right:-200px;
    }

}
@keyframes slider-left {
    0% {
        right:-100px;
    }
    100% {
        right:0px;
    }
}


.pane-chat-footer {
    background-color: rgba(255, 255, 255, .6);
    position: relative;
    transform: translateZ(0);
    -webkit-box-flex: 0;
    -webkit-flex: none;
    -ms-flex: none;
    flex: none;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    .chat-input {
        border-radius: 5px;
        background-clip: padding-box;
        background-color: #fff;
        width: 100%;
        border: 0;
        outline: none;
        padding-left: 8px;
        padding-top: 12px;
        font-size: 16px;
        padding-bottom: 0;
        height: 114px;
    }
}


.chat-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
    padding: 17px 1% 8px;
    transform: translateZ(0);
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -moz-user-select: none;
    -webkit-user-select: none;

    -webkit-transform: translateZ(0);
    border-right: 1px solid #efefef;
    ul {
        -webkit-box-flex: 0;
        -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    }
    .chat-item {
        position:relative;
        margin-bottom: 9px;
        user-select: none;
        display:flex;
        flex-direction: row;

        &:after {
            content: '';
            display: table;
            clear: both;
        }

        .avatar {
            position: absolute;
            top:0px;
            width: 32px;
            height: 32px;
        }
        .avatar.out {
            right:4px;
            margin-left:12px;
        }
        .avatar.in {
            left:4px;
            margin-right:12px;
        }
        .notification {
            color:rgb(178, 178, 178);
            font-size: 14px;
        }
        .name {
            margin-bottom: 4px;
            color:gray;
            font-size: 14px;
        }
    }

    .chat-item.out {
        padding-right:48px;
        justify-content: flex-end;
    }

    .chat-item.in {
        padding-left:48px;
    }

    .chat-item.middle {
        justify-content: center;
    }

    .ack {
        position: absolute;
        width:15px;
        height: 15px;
        right: 10px;
        bottom: 0;
        background: url(../images/_s.png) no-repeat;
        background-size: 10px;
        opacity: .8;
    }

    .message {
        user-select: none;
        .bubble {
            padding: 8px;
            display: inline-block;
            .image-thumb-body {
                -webkit-box-flex: 0;
                -webkit-flex: none;
                -ms-flex: none;
                flex: none;
                -webkit-transition: -webkit-filter .16s linear;
                max-width: 300px;
            }

            .text {
                margin-top:4px;
                margin-bottom: 4px;
                line-height: 1.2;
                word-break: break-all;
                user-select: text;
                white-space: pre-line;
                a {
                    color:rgb(65, 161, 243);
                }
            }

            .file {
                display:flex;
                flex-direction:row;
                align-items:center;

                .name {
                    padding-right:48px;
                    margin:0;
                    margin-left:12px;
                    margin-bottom:12px;
                    overflow: hidden;
                    text-overflow:ellipsis;
                    white-space: nowrap;
                    max-width: 200px;
                }

                .size {
                    padding-right:48px;
                    margin:0;
                    margin-left:12px;
                }

                .cancel {
                    width: 36px;
                    height: 36px;
                }

                .canceled {
                    padding-left:8px;
                    font-size: 12px;
                    color:gray;
                }
            }


            .address {
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
                max-width: 202px;
                margin-bottom: 4px;
            }
            .marker {
                width:220px;
            }
        }

        a.bubble {
            text-decoration: none;
            color: black;
        }
    }

    .message.in, .message.out {
        border-radius: 4px;
        position: relative;
        max-width: 336px;
        box-shadow: 0 1px .5px rgba(0, 0, 0, .13);
        -webkit-transition: .2s cubic-bezier(.31, .34, .3, .99);
        transition: .2s cubic-bezier(.31, .34, .3, .99);
    }

    .message.in {
        background-color: #fff;
        -webkit-transform-origin: bottom left;
        -ms-transform-origin: bottom left;
        transform-origin: bottom left;
        &.selected {
            background-color:rgb(230, 229, 230);
            &:before {
                border-right: 6px solid rgb(230, 229, 230);                            
            }
        }
        &:before {
            content: '';
            position: absolute;
            left: -6px;
            top: 8px;
            width: 0px;
            height: 0px;
            border-top: 4px solid transparent;
            border-right: 6px solid #fff;
            border-bottom: 4px solid transparent;
        }
    }

    .message.out {
        background-color: rgb(175,228,100);
        -webkit-transform-origin: bottom right;
        -ms-transform-origin: bottom right;
        transform-origin: bottom right;

        &.selected {
            background-color:rgb(157, 205, 100);
            &:before {
                border-left: 6px solid rgb(157, 205, 100);
            }
        }        
        &:before {
            content: '';
            position: absolute;
            right: -6px;
            top: 8px;
            width: 0px;
            height: 0px;
            border-top: 4px solid transparent;
            border-left: 6px solid rgb(175,228,100);
            border-bottom: 4px solid transparent;
        };
    }

    .message.out.fail {
        &:after {
            content:'';
            position:absolute;
            left:-20px;
            bottom:3px;
            width: 16px;
            height: 16px;
            background-position: 50% 50%;
            background-repeat: no-repeat;
            background-size: contain;
            background-image:url("../images/warning.png");
        }
    }

    .message.out.spinning {
        &:after {
            content:'';
            position:absolute;
            left:-28px;
            bottom:3px;
            width: 16px;
            height: 16px;
            border: 4px solid #f3f3f3; /* Light grey */
            border-top: 4px solid #3498db; /* Blue */
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
    }
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




#MessageForm {
    line-height: 1.7em;
    width: 100%;
    /*border-top: 2px solid #fafafa;*/
    height: 36px;
    /*background-color: #fff;*/
}

#MessageForm-header {
    font-size: 13px;
    height: 28px;
    vertical-align: middle;
}

.MessageForm-tool {
    position: relative;
    margin-right: 8px;
    float: left;

    i {
        width: 20px;
        height: 20px;
        line-height: 20px;
        cursor: pointer;
        display: inline-block;
    }

    i.iconfont-smile {
        background: url(../images/icons.png) 0 -188px/100px auto no-repeat;
    }

    i.iconfont-smile:hover {
        background-position: -60px -188px;
    }

    i.screen_shot {
        background: url(../images/icons.png) 0 -641px/100px auto no-repeat;
    }

    i.screen_shot:hover {
        background-position: -60px -641px;
    }

    i.iconfont-upload {
        background: url(../images/icons.png) 0 -546px/100px auto no-repeat;
    }

    i.iconfont-upload:hover {
        background-position: -60px -546px;
    }

    i.file_shot {
        background: url(../images/icons.png) 0 -672px/100px auto no-repeat;
    }

    i.file_shot:hover {
        background: url(../images/icons.png) -60px -672px/100px auto no-repeat;
    }


}

.MessageForm-tool.right {
    position: relative;
    margin-right: 8px;
    float: right;

    i.voip_audio {
        background: url(../images/phone.png);
        background-size: contain;
        background-repeat:no-repeat;

    }

    i.voip_video {
        background: url(../images/video.png);
        background-size: contain;
        background-repeat:no-repeat;

    }
}

/* 表情 */
.expressionWrap{
    border: 1px solid #D9DADC;
    margin: 6px 15px;
    width: 240px;
    padding: 5px 4px;
    position: absolute;
    left: -16px;
    top: -180px;
    background: #fff;
    z-index: 1100;
}
.expressionWrap.expMes{
    left: 3px;
    bottom: -94px;
    margin: -1px -4px;
    width: 890px;
    border-top: 1px solid #D9DADC!important;
}
.expressionWrap .arrow{
    position: absolute;
    left: 5px;
    bottom: -9px;
    display: inline-block;
    width: 10px;
    height: 9px;
    background: url(../images/arrow.png);
}
.expressionWrap div{
    cursor: default;
}

.expressionWrap div {
    padding: 3px;
    border-radius: 4px;
    display:inline-block
}
.expressionWrap div:hover { background: #eee; }
.expressionWrap>div>span>span{ font-size: 20px; vertical-align: middle; }


.emoji {
    height: 24px;
    width: 24px;
    display: inline-block;
    font-size: 20px !important;
    text-align: center;
    line-height: 24px;
}

/* 粘贴图片预览 */
.previewPic{
    width:560px;
    height:420px;
    overflow:hidden;
    border-radius: 6px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -280px;
    margin-top: -210px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3),0 1px 1px rgba(50,50,50,.05);
    z-index: 100;
    padding: 13px;
    display: inline-block;
    //    visibility: hidden;
}
.previewPic .closeBtn{
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 10px;
    background: url(../images/icons.png) 0 -604px/100px auto no-repeat;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
.previewPic h2{
    text-align: center;
    width: 100%;
    font-size: 18px;
    font-weight: normal;
    margin-top: 5px;
    letter-spacing: .5px;
}
.previewPic .picWrap{
    text-align: center;
    background: url(../images/picWrapBg.png) 0 0/18px auto repeat;
    margin: 20px 15px 25px;
    line-height: 250px;
}
.previewPic .picWrap .picContent{
    max-width: 100%;
    max-height: 250px;
    display: inline-block;
}
.previewPic .picFooter{
    text-align: center;
    width: 100%;
    border-top: 1px solid #d4d4d4;
    padding-top: 20px;
}
.previewPic .picFooter .btn{
    display: inline-block;
    width: 130px;
    height: 44px;
    font-size: 18px;
    outline: 0;
    border: 1px solid #cecece;
    color: #000;
    background: #ebebeb;
    border-radius: 8px;
}
.previewPic .picFooter .btn:first-child{
    margin-right: 80px;
}
.previewPic .picFooter .btn.cur{
    color: #fff;
    background: #008be7;
    border-color: #008be7;
}
.previewPicLayer{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    background-color: #000;
    opacity: 0.1;
    //    visibility: hidden;
}
.previewPic .picFooter .btn:hover{
    color: #fff;
    background: #0099ff;
    border-color: #0099ff;
}


.load-container {
    width: 56px;
    height: 56px;
    position: absolute;
    overflow: hidden;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    margin-top:-28px;
    margin-left:-28px;
    z-index: 101;
    //    visibility: hidden;
}
.loader {
    margin: 25px auto;
    font-size: 25px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    -webkit-animation: loadUpdate 1.1s infinite ease;
    animation: loadUpdate 1.1s infinite ease;
}
@-webkit-keyframes loadUpdate {
    0%,
    100% {
        box-shadow: 0 -20.8px 0 0 #ffffff, 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.5), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.7);
    }
    12.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.7), 14.4px -14.4px 0 0 #ffffff, 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.5);
    }
    25% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.5), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.7), 20px 0 0 0 #ffffff, 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    37.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.5), 20px 0 0 0 rgba(0, 153, 255, 0.7), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    50% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.5), 14px 14px 0 0 rgba(0, 153, 255, 0.7), 0 20px 0 0 #ffffff, -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    62.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.5), 0 20px 0 0 rgba(0, 153, 255, 0.7), -14.4px 14.4px 0 0 #ffffff, -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    75% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.5), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.7), -20.8px 0 0 0 #ffffff, -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    87.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.5), -20.8px 0 0 0 rgba(0, 153, 255, 0.7), -14.4px -14.4px 0 0 #ffffff;
    }
}
@keyframes loadUpdate {
    0%,
    100% {
        box-shadow: 0 -20.8px 0 0 #ffffff, 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.5), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.7);
    }
    12.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.7), 14.4px -14.4px 0 0 #ffffff, 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.5);
    }
    25% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.5), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.7), 20px 0 0 0 #ffffff, 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    37.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.5), 20px 0 0 0 rgba(0, 153, 255, 0.7), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    50% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.5), 14px 14px 0 0 rgba(0, 153, 255, 0.7), 0 20px 0 0 #ffffff, -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.2), -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    62.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.5), 0 20px 0 0 rgba(0, 153, 255, 0.7), -14.4px 14.4px 0 0 #ffffff, -20.8px 0 0 0 rgba(0, 153, 255, 0.2), -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    75% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.5), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.7), -20.8px 0 0 0 #ffffff, -14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2);
    }
    87.5% {
        box-shadow: 0 -20.8px 0 0 rgba(0, 153, 255, 0.2), 14.4px -14.4px 0 0 rgba(0, 153, 255, 0.2), 20px 0 0 0 rgba(0, 153, 255, 0.2), 14px 14px 0 0 rgba(0, 153, 255, 0.2), 0 20px 0 0 rgba(0, 153, 255, 0.2), -14.4px 14.4px 0 0 rgba(0, 153, 255, 0.5), -20.8px 0 0 0 rgba(0, 153, 255, 0.7), -14.4px -14.4px 0 0 #ffffff;
    }
}
